//
//  EJSSettleSelectAddressCell.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/19.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSSettleSelectAddressCell.h"
#import "EJSAddressModel.h"

@implementation EJSSettleSelectAddressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setAddressModel:(EJSAddressModel *)model
{
    if(model){
        self.selectAddressView.hidden = YES;
        self.nameLabel.text = [NSString stringWithFormat:@"%@   %@ %@",model.man,[EJSUserModel countryCode],model.phone];
        self.addressLabel.text = model.address;
    }else{
        self.selectAddressView.hidden = NO;
    }
}

@end
